package br.com.cogerh.sidec.view;

import java.util.List;

import br.com.cogerh.sidec.dao.CompromissoConcluidoDAO;
import br.com.cogerh.sidec.dao.CompromissoConcluidoImpl;
import br.com.cogerh.sidec.model.CompromissoConcluido;
import br.com.cogerh.sidec.util.DAOfactory;

public class CompromissoConcluidoRN {
	private CompromissoConcluidoDAO compromissoConcluidoDAO;

	public void salvar(CompromissoConcluido compromissoConcluido) {
		compromissoConcluidoDAO = new CompromissoConcluidoImpl();
		compromissoConcluidoDAO.salvar(compromissoConcluido);
	}

	public List<CompromissoConcluido> listar() {
		compromissoConcluidoDAO = new CompromissoConcluidoImpl();

		return compromissoConcluidoDAO.listar();

	}

	public void editar(CompromissoConcluido compromissoConcluido) {
		compromissoConcluidoDAO = new CompromissoConcluidoImpl();

		compromissoConcluidoDAO.editar(compromissoConcluido);
	}

	public void excluir(CompromissoConcluido compromissoConcluido) {
		compromissoConcluidoDAO = new CompromissoConcluidoImpl();

		compromissoConcluidoDAO.excluir(compromissoConcluido);
	}

}
